package com.vivachek.protocol.utils

import java.time.LocalDateTime
import java.util.Calendar
import java.util.Date

/**
 * @Author: YCB
 * @Time: 2022/10/9 16:54:01
 * @Email: congbin.yuan@vivachek.com
 * @Description:
 */
object CommandHelper {

    fun setTime(): List<Byte> {
        val currentTime = DateTimeUtil.currentTime("yyyyMMddHHmmss").substring(2)
        val data = mutableListOf<Byte>()
        for (i in currentTime.indices step 2) {
            data.add(currentTime.substring(i, i + 2).toByte())
        }
        return data
    }
}